
<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<style>
    form div{
        white-space:nowrap;
    }
</style>
<div class="pd-10">
    <div >
        <form id='registerform'action="<%=request.getContextPath()%>/back/order/doadd.do" method="post" class="form form-horizontal">
            <input type="hidden" id="unid"name="unid" />
            <div class="row cl">
                <label class="form-label col-3"><span class="c-red">*</span>客户姓名：</label>
                <div class="formControls col-5">
                    <input type="text" class="input-text"  id="customer" name="customer" datatype="*">
                </div>
                <div class="col-4"> </div>
            </div>
            <div class="row cl">
                <label class="form-label col-3"><span class="c-red"></span>手机：</label>
                <div class="formControls col-5">
                    <input ignore="ignore" type="text" class="input-text"  id="phone" name="phone"   >
                </div>
                <div class="col-4"> </div>
            </div>
            <div class="row cl">
                <label class="form-label col-3"><span class="c-red">*</span>文件名称：</label>
                <div class="formControls col-5">
                    <input type="text" class="input-text"  id="docname" name="docname" datatype="*">
                </div>
                <div class="col-4"> </div>
            </div>
            <div class="row cl">
                <label class="form-label col-3"><span class="c-red">*</span>板型：</label>
                <div class="formControls col-5 skin-minimal">
                    <div class="radio-box">
                        <input type="radio"value="薄板" id="plate-1" name="plate" checked>
                        <label for="plate-1">薄板</label>
                    </div>&nbsp;&nbsp;&nbsp;
                    <div class="radio-box">
                        <input type="radio" value="厚板" id="plate-2" name="plate">
                        <label for="plate-2">厚板</label>
                    </div>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-3"><span class="c-red">*</span>数量：</label>
                <div class="formControls col-5">
                    <input type="text" class="input-text"  id="amount" name="amount" datatype="n">
                </div>
                <div class="col-4"> </div>
            </div>
            <div class="row cl">
                <label class="form-label col-3"><span class="c-red">*</span>总价：</label>
                <div class="formControls col-5">
                    <input type="text" class="input-text"  id="money" name="money" datatype="/^-?[1-9]+(\.\d+)?$|^-?0(\.\d+)?$|^-?[1-9]+[0-9]*(\.\d+)?$/" nullmsg="不能为空" errormsg="必须为数字，可以有小数">
                </div>
                <div class="col-4"> </div>
            </div>
            <div class="row cl">
                <label class="form-label col-3"><span class="c-red"></span>送货地址：</label>
                <div class="formControls col-5">
                    <textarea class="textarea" placeholder="地址" name="address" ></textarea>
                </div>
                <div class="col-4"> </div>
            </div>
            <div class="row cl" style="margin-top:25px">
                <div class="col-9 col-offset-3">

                    <button class="btn btn-primary radius" id="submitBtn"> 确定</button>&nbsp;&nbsp;&nbsp;
                    <button class="btn  radius" type='reset'> 重置</button>&nbsp;&nbsp;&nbsp;
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>
<%@include file="../../head-ui.jsp"%>
<script type="text/javascript">
    $(function(){
        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });
        $("#createdate").val(formatDate(new Date(),"yyyy-MM-dd"));
        var form=$("#registerform").Validform({
            tiptype:3,
            callback:function(data){
                if(data.status=="0"){
                    layer.alert('保存成功!', {
                        icon: 1,//2表示保存失败图标，1表示保存成功
                        closeBtn:false,
                        shadeClose: true,
                        title: "提示"
                    }, function(){
                        layer_close();
                    });
                    //layer.msg('保存成功!',{icon: 1,time:1000});
                    $("#uuid").val(data.uuid);
                }else{
                    layer.msg(data.msg,{icon: 1,time:1000});
                }
            },
            ajaxPost:true,
            showAllError:true
        });

        $("#submitBtn").click(function(){
            form.submitForm(false);
        })





    })
</script>
<script type="text/javascript" src="<%=request.getContextPath()%>/resources/js/util.js"></script>
